/*
 * Copyright (c) 2018-2999 湖南洛云网络科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.distribution.comment.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author yami
 */
@Data
public class DistributionProdDto {

    @ApiModelProperty(value = "商品名称",required=true)
    private String prodName;

    @ApiModelProperty(value = "商品ID",required=true)
    private Long prodId;

    @ApiModelProperty(value = "商品主图",required=true)
    @JsonSerialize(using = ImgJsonSerializer.class)
    private String pic;

    @ApiModelProperty(value = "商品价格",required=true)
    private Double price;

    @ApiModelProperty(value = "奖励数额(元/百分比)",required=true)
    private Double awardNumber;

    @ApiModelProperty(value = "上级奖励数额(元/百分比)")
    private Double  parentAwardNumber;

    @ApiModelProperty(value = "奖励比例(0 按比例 1 按固定数值)",required=true)
    private Integer awardProportion;
}
